<%@ Control Language="C#" AutoEventWireup="true" CodeFile="tm_showAdvert.ascx.cs" Inherits="controls_tm_showAdvert" %>
<asp:Panel ID="pnlAdvert" runat="server" Width="100%">
    <asp:GridView ID="gvAdvert" runat="server" AutoGenerateColumns="False" DataKeyNames="advertId"
        DataSourceID="dsAdvert" GridLines="None" ShowHeader="False" Width="100%">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%#ShowImage(Eval("advertId").ToString(),Eval("url").ToString(),Eval("advertFile").ToString(),Eval("altDescription").ToString(),Eval("description").ToString()) %>'></asp:Label>
                
                    
               
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
</asp:Panel>
<asp:SqlDataSource ID="dsAdvert" runat="server"></asp:SqlDataSource>
<asp:Label ID="lblMessage" runat="server"></asp:Label>
<asp:Label ID="lblDebugMessage" runat="server"></asp:Label>